/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bgu.sonar.util.colors;

import java.awt.Color;
import java.util.Random;

/**
 *
 * @author bennyl
 */
public class PastelColorGenerator {

    Random r;

    public PastelColorGenerator(long seed) {
        r = new Random(seed);
    }

    public Color nextColor() {
        final float hue = r.nextFloat();
        final float saturation = 0.88f + r.nextFloat() * 0.04f;//1.0 for brilliant, 0.0 for dull
        final float luminance = 0.9f + 0.1f * r.nextFloat(); //1.0 for brighter, 0.0 for black
        return Color.getHSBColor(hue, saturation, luminance);
    }
}
